package cn.dglydrpy.fundmanagement.service.dto;

import lombok.Data;
import java.math.BigDecimal;

@Data
public class TransactionDto {
    private Long id;
    private String fundCode;
    private String fundName;
    private String transactionType; // 1-买入 2-卖出
    private String transactionTypeName;
    private BigDecimal shares;
    private BigDecimal price;
    private BigDecimal fee;
    private BigDecimal amount;
    private String transactionTime;
    private String createdTime;
    private String updatedTime;
    private String status;
    
    // 扩展字段用于盈亏计算
    private BigDecimal currentValue;
    private BigDecimal profit;
    private BigDecimal profitRate;
    private BigDecimal netValue;
}